#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Student
#
# Created:     13/07/2012
# Copyright:   (c) Student 2012
# Licence:     <your licence>
#-------------------------------------------------------------------------------
#comment
#there are no curly brackets and there are no semicolon
#declaring variable <name> = <value>
import random
myList = ["cat","dog","bird","ant"]

class HangMan:


    def gamePlay ():
        print("lets play hangman..!")
        print("i will choose the words randomly...")
        myList2 = []
        words = random.choice(myList)
        display = ""
        if myList2 in myList:
            display+=""
        else:
            print("_")
        for myList2 in myList:


            counter=0
        while(counter<5):
            input1 = input("choose a letter you want...")
            if input1 in words:
                print("%s is in the word"%input1)
            else:
                print("this letter not in the words.....!")
                counter+=1

    def endGame ():
        if input1 == myList:
            print("you win the game....!!")
        else:
            print("you lost the game....!!!")

def main():
    HangMan.gamePlay()
    HangMan.endGame()

if __name__ == '__main__':
    main()


